﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using G15_Agent.BUS;

namespace G15_Agent.Helpers.ServiceHelpers.TravelServiceHelpers
{
    public class G11TravelService : TravelSerivce
    {
        public G11TravelService(string serviceID, string defaultUsername, string defaultPassword)
        {
            ServiceID = serviceID;
            DefaultUsername = defaultUsername;
            DefaultPassword = defaultPassword;
        }

        protected override bool CallSpecificServiceLogin(string username, string password)
        {
            return BUS_Manager.travel.DangNhap_G11(username, password);
        }

        protected override List<Models.Travel.TourDuLich> IRetrieveTourList(string tourType, string departLocation)
        {
            return BUS_Manager.travel.LayDanhSachTourDuLichTheoTieuChi_G11(tourType, departLocation);
        }

        protected override List<Models.Travel.TourDuLich> ISearchForTour(string tourType, DateTime departDate, DateTime returnDate, double minPrice, double maxPrice, string route)
        {
            return BUS_Manager.travel.TimKiemTourDuLichMoRong_G11(tourType, departDate, returnDate, minPrice, maxPrice, route);
        }

        protected override Models.Travel.TourDuLichChiTiet IRetrieveTourDetail(string tourID)
        {
            return BUS_Manager.travel.LayThongTinChiTietTour_G11(tourID);
        }

        protected override int? IBookingForTour(int tourID, int numberOfAdult, int numberOfChilren, List<Models.Travel.KhachHang> listPassenger)
        {
            return BUS_Manager.travel.GuiYeuCauMuaTour_G11(tourID, numberOfAdult, numberOfChilren, listPassenger);
        }
    }
}